package com.zhentao.domain.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import lombok.Data;

import java.util.Date;

@Data
public class TeacherExport {
    /**
     * 用户编号
     */
    @ExcelProperty(value = "用户编号", index = 0)
    @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER)
    private Integer userId;

    /**
     * 账号
     */
    @ExcelProperty(value = "账号", index = 1)
    @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER)
    private String username;

    /**
     * 密码
     */
    @ExcelProperty(value = "密码", index = 2)
    @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER)
    private String password;

    /**
     * 用户名
     */
    @ExcelProperty(value = "讲师名称", index = 3)
    @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER)
    private String nickname;


    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间", index = 4)
    @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER)
    private Date createTime;

    /**
     * 修改时间
     */
    @ExcelProperty(value = "修改时间", index = 5)
    @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER)
    private Date updateTime;

    /**
     * 状态 0:正常 1:禁用
     */
    @ExcelProperty(value = "状态", index = 6,converter = ReturnStatusConverter.class)
    @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER)
    private Integer state;

    /**
     * 手机号
     */
    @ExcelProperty(value = "手机号", index = 7)
    @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER)
    private String phone;


    /**
     * 性别
     * 0:男 1:女
     * */
    @ExcelProperty(value = "性别", index = 8,converter = ReturnSexConverter.class)
    @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER)
    private Integer sex;

    /**
     * 邮箱
     * */
    @ExcelProperty(value = "邮箱", index = 9)
    @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER)
    private String email;


}
